import { ICompanyUpdateInfo, ICheckinParasm, ICheckinInfo } from './company.typing'
import { http } from '@/utils/http'

/**
 * 修改公司信息信息
 */
export const updateCompanyInfo = (data: ICompanyUpdateInfo) => {
  return http.post(
    '/company/save',
    data,
    {},
    { Authorization: 'Bearer ' + uni.getStorageSync('access_token') },
  )
}
/**
 *公司签到
 * @param data
 * @returns
 */

export const checkIn = (data: ICheckinParasm) => {
  return http.post<ICheckinInfo>(
    '/checkin/do',
    data,
    {},
    { Authorization: 'Bearer ' + uni.getStorageSync('access_token') },
  )
}
